STEP 14: Let's finish up our reptile if statement! If has_scales is True and not eggs_in_water is True, then we know to classify the animal as a reptile. Let's make sure we specify this underneath our if statement!

  • Inside classify_animal() and inside its second if statement, change my_var to animal_class.
  • Then, change the string from "This is a string." to "reptile".

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)